home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir30
/
heaven_1.zip
/
DDALIAS.DOC
< prev
next >
Wrap
Text File
|
1993-11-01
|
2KB
|
52 lines
Have you ever wanted to create an alias for a command without having to edit
your ACAD.PGP file? Didn't you wish there was some way to assign aliases
through a dialog box? Now you can!
With DDALIAS, making aliases for commands is as easy as editing text in a
dialog box. All AutoCAD commands will be available to alias. Additionally,
any user commands that have been added will automatically be available to
alias.
How it works
────────────
DDALIAS reads in your existing ACAD.PGP file. It parses it into a managable
list and creates a dialog box. On the left side of the dialog is a pop-down
list box. Use this list box to select the command to alias. Notice that all
of your commands in Release 12 and any custom commands are available. To
change or add an alias, pick in the text edit box and type the alias. Your
syntax will be checked. If you get the error message "Empty or invalid input"
you have entered illegal characters. Multiple aliases may be assigned to one
command by separating them with commas. If a duplicate alias is found you
will be notified. Once you pick OK, your new ACAD.PGP will be written and
initialized. All aliases are immediately available.
Installation
────────────
Copy the file DDALIAS.DCL and DDALIAS.LSP to your AutoCAD directory. Change
the line as indicated in the remarks in DDALIAS.LSP to reflect the full path
to your ACAD.PGP file (look towards the top of the file). Load it and
type: DDALIAS.
Nitty Gritty
────────────
This Autolisp routine actually steps through the atoms-family to determine
what custom commands have been added. It has some sophisticated code to
check for duplicate aliases. It actually use a list of paired lists to track
aliases. It also reads the current ACAD.PGP into a list before manipulating
it. This avoids having another file open. It actually writes the new file
over the existing one.
Fun Stuff
─────────
This routine was written by:
Michael Jenkins
Gray Construction Company
Lexington, Kentucky
To Autodesk
───────────
You are welcome to include this code as tutorial material or any other purpose
you see fit. Personally, I would like to see it become a standard function
whether it comes from my code or not. It's definitely an encouragement to
use aliases!